import request from '@/utils/request'
import { objectToFormData} from '@/utils/form'


export function findPoiStyleList(params) {
  return request({
    url: '/scene/biz/poi/template/list',
    method: 'get',
    params:params
  })
}

export function savePoiStyle(params) {
  return request({
    url: '/scene/biz/poi/template/save',
    method: 'post',
    data: objectToFormData(params)
  })
}


export function deletePoiStyle(params) {
  return request({
    url: '/scene/biz/poi/template/deleteById',
    method: 'get',
    params:params
  })
}

export function getThumbnail(id,type) {
  return request({
    url: '/scene/biz/poi/template/thumbnail/id',
    method: 'get',
    params:{type:type},
    responseType:'stream'
  })
}
